<template>
  <div class="app-container home">
    <el-carousel :interval="1500" type="card" height="400px" >
      <el-carousel-item v-for="item in ims" :key="item.id">
        <el-image style="width: 100%;height: 100%" :src="item.view" fit="fit"></el-image>
      </el-carousel-item>
    </el-carousel>
    <div class="box1">
      <span class="ym">挑战杯项目作品</span>
      <div class="box2">
        <span class="f1">高效 高端</span>
        <br>
        <span class="f2">精准 智能</span>
      </div>
      <span class="zs">基于视频分析的煤矿井下钻孔施工智能检测平台</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.7",
      ims:[
        {id:1,view:require("../assets/images/ig1.png")},
        {id:2,view:require("../assets/images/ig2.png")},
        {id:3,view:require("../assets/images/ig3.png")},
        {id:4,view:require("../assets/images/ig4.png")},
        {id:5,view:require("../assets/images/ig5.png")},
        {id:6,view:require("../assets/images/ig6.png")}
      ]
    };
  },
  methods: {

  }
};
</script>

<style scoped lang="scss">
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}

.home{
  background-image: linear-gradient(to top, #a8edea 0%, #ffffff 100%);
  height: 860px;
}

.box1{
  width: 100%;
  height: 400px;
  position: relative;
  font-size: 28px;
}

.zs{
  position: absolute;
  bottom: 5%;
  right: 0;
}
.box2{
  font-size: 50px;
  font-weight: bolder;
  font-style: italic;
}

.ym{
  position: absolute;
  right: 0;
}

.f1{
  position: absolute;
  left: 5%;
  bottom: 55%;
}

.f2{
  position: absolute;
  left: 13%;
  bottom: 30%;
}

</style>

